package com.syqc.maps.clusters

import com.amap.api.maps.model.LatLng
import com.amap.api.maps.model.Marker

class Cluster(val latLng: LatLng) {
    private val mClusterItems: MutableList<ClusterItem> = ArrayList()
    var marker: Marker? = null
    var isSingle = false

    fun addClusterItem(item: ClusterItem) {
        mClusterItems.add(item)
    }

    //聚合List
    val clusterItems get() = mClusterItems

    //总共聚合数量
    val clusterCount get() = mClusterItems.size
}